'
' Digital Wizard's Lab - game development framework
' Copyright (C) 2010, Matt Merkulov
'
' All rights reserved. Use of this code is allowed under the
' Artistic License 2.0 terms, as specified in the license.txt
' file distributed with this code, or available from
' http://www.opensource.org/licenses/artistic-license-2.0.php
'

Global L_VideoDrivers:TList = New TList

Type LTVideoDriver
	Field Name:String
	Field Driver:TMax2DDriver
	
	Function Get:LTVideoDriver( Name:String ="" )
		For Local Driver:LTVideoDriver = Eachin L_VideoDrivers
			If Driver.Name = Name Then Return Driver
		Next
		Return LTVideoDriver( L_VideoDrivers.First() )
	End Function
End Type